#ifndef ADDQUESTION_H
#define ADDQUESTION_H

#include <QWidget>
#include <QSqlDatabase>
#include <QMessageBox>
#include "database.h"
#include "question.h"

namespace Ui {
class addquestion;
}

class addquestion : public QWidget
{
    Q_OBJECT

public:
    explicit addquestion(QWidget *parent = nullptr);
    ~addquestion();

signals:
    void add_exit();

private slots:

    void on_pushButton_add_clicked();

    void on_pushButton_exit_clicked();


private:
    Ui::addquestion *ui;
    QSqlDatabase db;



};

#endif // ADDQUESTION_H
